﻿// This software is the confidential and proprietary information of NetBay.
// Such confidential information should not be disclosed.
// NetBay copyright(c) 2012

#region

using System;

#endregion

namespace Rio.Workflow.Runtime
{
    public class Parameter
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="Parameter" /> class.
        /// </summary>
        public Parameter()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="Parameter"/> class.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <param name="value">The value.</param>
        public Parameter(string key, string value)
        {
            ParameterName = key;
            ParameterValue = value;
        }

        #endregion

        #region Instance Properties

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string ParameterName { get; set; }

        /// <summary>
        /// Gets or sets the value.
        /// </summary>
        /// <value>The value.</value>
        public string ParameterValue { get; set; }

        #endregion

        #region Instance Methods

        /// <summary>
        /// Gets the type.
        /// </summary>
        /// <returns></returns>
        public new Type GetType()
        {
            return ParameterValue.GetType();
        }

        #endregion
    }
}